(C) 1996 AROS - The Amiga Replacement OS


NAME
ULONG AvailMem()
SYNOPSIS
ULONG attributes

LOCATION
In SysBase at offset 36
FUNCTION
Return either the total available memory or the largest available chunk of a given type of memory.

INPUTS
attributes
The same attributes you would give to AllocMem().
RESULT
Either the total of the available memory or the largest chunk if MEMF_LARGEST ist set in the attributes.

NOTES
Due to the nature of multitasking the returned value may already be obsolete if this function returns.

EXAMPLE
Print the total available memory.

printf("Free memory: %lu bytes\n",AvailMem(0));

Print the size of the largest chunk of chip memory.

printf("Largest chipmem chunk: %lu bytes\n",
       AvailMem(MEMF_CHIP|MEMF_LARGEST));

BUGS
SEE ALSO
INTERNALS
HISTORY
12.05.1997 aros
Fixed all headers
01.01.1997 ldp
Committed Amiga native (support) code

Changed clib to proto

10.12.1996 aros
Moved all #include's in the first column so makedepend can see it.
24.10.1996 aros
Use the official AROS macros over the __AROS versions.
13.09.1996 digulla
Use IPTR
13.08.1996 digulla
Replaced __AROS_LA by __AROS_LHA Replaced some __AROS_LH*I by __AROS_LH* Sorted and added includes
01.08.1996 digulla
Added standard header for all files
01.08.1996 digulla
Added copyright notics and made headers conform
28.07.1996 digulla
Initial revision
28.07.1996 digulla
First CVS version of AROS